package com.example.Utils;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by fany on 14-1-24.
 */
public  class FileHelper {
    public static List<String> EnumFiles(String path){
        List<String> retFiles = new ArrayList<String>();
        try{
            File baseFile = new File(path);
            File[] childFiles = baseFile.listFiles();
            for (File file : childFiles) {
                retFiles.add(file.getName());
            }
        }
        finally {
            return retFiles;
        }
    }

}
